include $(ERP_BASE_PATH)/comm/makefile.comm.v2

VPATH=../src

OUTPUT=companydao_test
OBJS=companydao_test.o companydao_testmain.o companydao.o

OBJS_INC=-I../include -I$(ERP_BASE_PATH)/comm/export_include \
		-I$(ERP_BASE_PATH)/comm/export_include/app_platform \
		-I$(ERP_BASE_PATH)/comm/export_include/c2cplatform \
		-I$(ERP_BASE_PATH)/comm/export_include/c2cplatform/compoent/session_sync3 \
		-I$(ERP_BASE_PATH)/comm/export_include/libc2c \
		-I$(ERP_BASE_PATH)/comm/export_include/tlib \
		-I../XXO

OBJS_LIB=-L$(LIB_EXPORT_PATH) \
		 -lres_factory -lstorage_mysql -ldb_conn_pool_r -llibrary_db \
		 $(LIB_SYNCV3) $(LOG2_LIB) \
		  -lcomponent_configcenter_4daemon_multiport \
		  -lc2c -ltlib \
		  -llibrary_the3_tinyxml \
		 -lcppunit -ldl -lxml2 -lz -lm
CFLAGS=

all: clean  $(OUTPUT)

$(OUTPUT): $(OBJS)
	$(CXX) $(CFLAGS) -o $(OUTPUT) $(OBJS) $(OBJS_INC) $(OBJS_LIB)

%.o : %.cpp
	$(CXX) $(CFLAGS)  -c $^ -o $@  $(OBJS_INC)

clean:
	rm -f $(OUTPUT)
	rm -rf *.o

dep:
	mkdep $(INCLUDE) $(SOURCES) > .depend

ifneq ($(wildcard .depend),)
include .depend
endif
